const express = require("express");
const interviewSpeedController = require("../controller/interviewSpeedController");
const requireAuth = require("../middleware/requireAuth");
const router = express.Router({ mergeParams: true });

router
  .route("/")
  .post(interviewSpeedController.createInterviewSpeed)
  .get(requireAuth, interviewSpeedController.getAllInterviewSpeed)
  .delete(requireAuth, interviewSpeedController.deleteAllInterviewSpeedByGroup);

router
  .route("/group")
  .get(requireAuth, interviewSpeedController.getInterviewSpeedByGroup);

module.exports = router;
